<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    case 'img':
    if(toId==data.formId){
        $('.hb-xiaoxi-bg').append('<div class="hb-xiaoxi-detail">\n' +
            '        <div class="hb-xiaoxi-detail-touxiang"><img src="'+to_avatar+'"></div>\n' +
            '        <div class="hb-xiaoxi-detail-dialog">\n' +
            '            <div class="hb-xiaoxi-detail-sanjiao">\n' +
            '                <em></em><span></span>\n' +
            '            </div>\n' +
            '            <img src="'+data.content+'">\n' +
            '        </div>\n' +
            '    </div>');
        var h = $(document).height()-$(window).height();
        $(document).scrollTop(h);
        return;
    }
</script>
</body>
</html>